package com.dongjiantong.farmrecords.mapper;

import com.dongjiantong.farmrecords.model.FarmRecordsPollution;
import com.dongjiantong.mybatis.MyMapper;

import java.util.List;
import java.util.Map;

public interface FarmRecordsPollutionMapper extends MyMapper<FarmRecordsPollution> {
    /**
     * 根据条件查询记录
     * @param map
     * @return
     */
    List<FarmRecordsPollution> selectByMap(Map map);

    /**
     * 新增一条记录
     * @param
     * @return
     */
    int createOne(FarmRecordsPollution farmRecordsPollution);

    String findMaxNumber(String prefix);

    /**
     * 养殖端根据状态查询列表
     * @param map
     * @return
     */
    List<FarmRecordsPollution> selectListByStatus(Map<String, Object> map);

    /**
     * 治污分析(政府)
     * @param map
     * @return
     */
    Map<String,Object> pollutionAnalysisGov(Map<String,Object> map);

    /**
     * 治污分析(养殖)
     * @param map
     * @return
     */
    Map<String,Object> pollutionAnalysis(Map<String,Object> map);
}